package com.czk.model.adaptor.classadaptor;

public class Phone {
    public void charming(Voltage5 voltage5){
        int i = voltage5.output5();
        if (i==5){
            System.out.println("电压5v，可以充电");
        }else {
            System.out.println("不是5v，无法充电");
        }
    }
}
